From 1cff4bb27ae2abe421a062c6ea8c1fda56151425 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 7 Jul 2021 23:22:23 -0400 Subject: [PATCH] composetable: Ignore length 1 sequences It turns out that the X11 Compose file has some length 1 sequences which are not interesting to us. --- gtk/gtkcomposetable.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk/gtkcomposetable.c b/gtk/gtkcomposetable.c index e32f11f3d5..2a012efa29 100644 --- a/gtk/gtkcomposetable.c +++ b/gtk/gtkcomposetable.c @@ -508,6 +508,12 @@ parser_remove_duplicates (GtkComposeParser *parser) goto next; } + if (sequence[1] == 0) + { + remove_sequence = TRUE; + goto next; + } + for (i = 0; i < MAX_COMPOSE_LEN + 1; i++) keysyms[i] = 0; -- 2.30.2